package xcmg.device.feigin;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import xcmg.device.service.vo.company.CompanyDealerVO;
import xcmg.device.service.vo.company.CompanyInfoVO;
import yb.ecp.fast.infra.infra.ActionResult;

import java.util.List;

@EnableFeignClients
@FeignClient("${gc-device-server:gc-device-server}")
public interface DeviceClient {

    @RequestMapping(value = "/company/info", method = RequestMethod.GET)
    ActionResult<CompanyInfoVO> info(@RequestParam("orgId") String orgId);

    @RequestMapping(value = "/company/infos", method = RequestMethod.POST)
    ActionResult<List<CompanyInfoVO>> infos(@RequestBody List<String> orgIds);

}
